package com.jswlw.service.base;

import com.jswlw.entity.base.Role;
import com.jswlw.entity.base.RoleMenu;

import java.util.List;

/**
 * Created by wu on 2017-12-07.
 */
public interface RoleService extends BaseService<Role> {

    /**
     * 查询角色权限
     *
     * @param roleId
     * @return
     */
    List<RoleMenu> findAuth4Role(Integer roleId);

    /**
     * 保存角色权限
     * @param menus
     * @param roleId
     */
    void saveAuth(Integer[] menus, Integer roleId);
}
